/*******************************************************************************
 * Copyright (c) 2012-2017 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/
@eval partBackground org.eclipse.che.ide.api.theme.Style.theme.partBackground();
@eval outputFontColor org.eclipse.che.ide.api.theme.Style.theme.getOutputFontColor();
@eval successColor org.eclipse.che.ide.api.theme.Style.getSuccessColor();
@eval categoryHeaderButtonColor org.eclipse.che.ide.api.theme.Style.theme.categoryHeaderButtonColor();
@eval categoryElementButtonHoverColor org.eclipse.che.ide.api.theme.Style.theme.categoryElementButtonHoverColor();
@eval processTreeBackgroundColor org.eclipse.che.ide.api.theme.Style.theme.processTreeBackgroundColor();
@eval outputBackgroundColor org.eclipse.che.ide.api.theme.Style.theme.outputBackgroundColor();
@eval outputFontColor org.eclipse.che.ide.api.theme.Style.theme.getOutputFontColor();
@eval editorTabIconColor org.eclipse.che.ide.api.theme.Style.getEditorTabIconColor();
@eval outputBoxShadow org.eclipse.che.ide.api.theme.Style.theme.outputBoxShadow();
@eval processTreeDevLabel org.eclipse.che.ide.api.theme.Style.theme.processTreeDevLabel();
@eval processBadgeBorderColor org.eclipse.che.ide.api.theme.Style.theme.processBadgeBorderColor();
@eval getTooltipBackgroundColor org.eclipse.che.ide.api.theme.Style.theme.getTooltipBackgroundColor();
@eval getPrimaryHighlightColor org.eclipse.che.ide.api.theme.Style.theme.getPrimaryHighlightColor();

@external .terminal, .terminal-cursor;

.terminal {
    border-color: transparent;
    background-color: outputBackgroundColor;
    border-width: 0px;
    margin-left: 0px;
    margin-top: 0px;

    color: outputFontColor;
    line-height: 13px;
    padding: 3px;
    white-space: nowrap;
}

.terminal-cursor {
    background: blueIconColor;
}

.terminal > div span {
    white-space: nowrap;
}

.fullSize {
    width: 100% !important;
    height: 100% !important;
}

.machineConsole {
    background-color: outputBackgroundColor;
    -moz-user-select: text;
    -webkit-user-select: text;
    user-select: text;
    color: outputFontColor;
    outline: none;
    border-top: 1px solid separatorColor;
    -webkit-box-shadow: outputBoxShadow;
    -moz-box-shadow: outputBoxShadow;
    box-shadow: outputBoxShadow;
    padding: 3px;
    margin-bottom: 3px;
}

.machineConsole pre {
    font-family: outputFontFamily;
    font-size: fontSize;
}

.consoleToolbar {
    box-shadow: 0 2px 5px 0 rgba(50, 50, 50, 0.75);
}

.outputsConsoleTabsPanel {
    box-shadow: 0 2px 5px 0 rgba(50, 50, 50, 0.75);
}

.outputsContainerConsoleTab {
    border-right: 1px solid tabBorderColor;
    cursor: pointer;
    height: 17px;
    font-size: 11px;
    display: inline-block;
}

.outputsContainerConsoleTab:hover {
    color: buttonHoverTextColor;
}

.outputsContainerConsoleTabSelected {
}

.outputsContainerConsoleTabSelected:before {
    position: absolute;
    height: 0;
    content: "";
}

.outputsContainerConsoleTabPanel {
    border-right: 1px solid tabBorderColor;
    box-shadow: 1px 0 0 0 tabBorderShadow;
    position: relative;
    top: -2px;
    padding-left: 15px;
}

.outputsContainerConsoleTabPanel.outputsContainerConsoleTabSelected:before {
    left: 0;
    width: 100%;
    border-top: 1px solid blueIconColor !important;
}

.outputsContainerConsoleTabLabel {
    position: relative;
    top: 2px;
    color: outputFontColor;
}

.outputsContainerConsoleTabCloseButton {
    cursor: pointer;
    opacity: 0.5;
    padding: 5px 10px;
    float: right;
}

.activeTab {
    border-left: 1px solid #000000;
    border-top: 1px solid #000000;
    border-right: 1px solid #000000;
    box-shadow: inset 0 1px 0 0 #4d4d4d, 0 2px 0 0 #474747;
}

.activeTabText {
    color: #ffffff;
}

.disableTab {
    color: #929292;
}

.opacityButton {
    opacity: 0.4;
}

.selectRecipe {
    background-color: #132d41;
}

.unSelectRecipe {
    background-color: #373737;
}

.unavailableLabel {
    width: 100%;
    height: 100%;
    left: 0;
    cursor: default;
    text-align: center;
    top: 50% !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 1);
}

.selectCommandBox:first-child > .selectCommandBoxIconPanel:first-child {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.selectCommandBox:first-child > .selectCommandBoxIconPanel:first-child + div {
    font-family: textFieldFontFamily;
    color: selectCommandActionColor;
    font-size: textFieldFontSize;
}

.selectCommandBox:first-child > .selectCommandBoxIconPanel:first-child + div:hover {
    color: selectCommandActionHoverColor;
}

.selectCommandBox {
    height: 100%;
    min-width: 336px;
    white-space: nowrap;
    margin: 0 !important;
    display: inline-block;
}

.selectCommandBoxIconPanel {
    float: left;
    width: 40px;
    height: 100%;
    margin-top: auto;
    line-height: 24px;
    background-color: selectCommandActionIconBackgroundColor;
}

.selectCommandBox .selectCommandBoxIconPanel + div {
    float: left;
    text-align: left;
    width: 150px;
    padding: 0 5px 0 5px;
    display: inline-block;
}

.selectCommandBoxIconPanel svg {
    max-width: 22px;
    max-height: 22px;
    fill: selectCommandActionIconColor;
}

.selectCommandBoxIconPanel svg path {
    fill: selectCommandActionIconColor !important;
}

.processTree {
    font-family: mainFontFamily;
    font-size: fontSize;
    color: mainFontColor;
    text-shadow: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.processTree .processTreeNode {
}

.commandTreeNode {
    position: relative;
    left: 0px;
    top: -1px;
}

.dockerMachineLabel {
    background-color: blueIconColor;
}

.differentMachineLabel {
    background-color: redIconColor;
}

.dockerMachineLabel,
.differentMachineLabel {
    display: inline-block;
    color: processTreeDevLabel;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    line-height: 12px;
    min-width: 22px;
    font-size: 9px;
    padding: 0;
    border-radius: 2px;
    margin: 3px 5px 0 3px;
    box-shadow: 1px 1px 2px treeTextShadow;
}

.processTree span {
    line-height: 18px;
}

.processTree .nameLabel {
    font-weight: bold;
}

.processTree .machineStatus {
    position: relative;
    float: left;
    margin: 0 4px;
    overflow: hidden;
}

.processTree .machineStatus .machineStatusRunning {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    background-color: #46af00;
    border: 1px solid #7ed321;
    border-radius: 5px;
    box-sizing: border-box;
    position: relative;
}

.processTree .machineStatus .machineStatusPausedLeft {
    margin-left: 2px;
}

.processTree .machineStatus .machineStatusPausedLeft,
.processTree .machineStatus .machineStatusPausedRight {
    display: inline-block;
    width: 3px;
    height: 10px;
    background-color: #A97B32;
    border: 1px solid rgb(228, 158, 45);
    border-radius: 5px;
    box-sizing: border-box;
    position: relative;
    top: 1px;
    margin-right: 1px;
}

.sshButton {
    position: relative;
    font-size: 10px;
    float: right;
    margin-right: 2px;
    color: categoryHeaderButtonColor;
    cursor: pointer;
    right: 0;
    top: 0;
}

.processTree .newTerminalButton {
    float: right;
    margin: 3px 6px 0 5px;
    width: 12px;
    height: 13px;
    font-size: 13px;
    font-weight: bold;
    line-height: 10px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    position: relative;
    right: 0;
    top: 0;
}

.processTree .newTerminalButton > svg {
    margin-top: 2px;
}

.newTerminalButton span:hover {
    fill: categoryHeaderButtonHoverColor;
    stroke: categoryHeaderButtonHoverColor;
}

.newTerminalButton:hover,
.sshButton:hover {
    filter: brightness(120%);
    -webkit-filter: brightness(120%);
}

.processTree .machineMonitors {
    float: right;
    cursor: default;
    position: absolute;
    right: 24px;
    top: 0;
}

.processTree .processIcon {
    margin-left: 5px;
    margin-right: 5px;
    position: relative;
    overflow: hidden;
}

.processTree .processIconPanel {
    display: inline-block;
    position: relative;
    left: 0;
    top: 2px;
    width: 16px;
    height: 14px;
}

.processTree .processBadge {
    position: absolute;
    left: 9px;
    top: 1px;
    width: 7px;
    height: 7px;
    border-radius: 3px;
    background-color: #4EABFF;
    border: 1px solid processBadgeBorderColor;
    box-sizing: border-box;
    display: none;
}

.processTree .badgeVisible .processBadge {
    display: block;
}

.processIcon svg {
    fill: iconColor;
    width: 12px;
    height: 12px;
    vertical-align: middle;
    position: absolute;
    left: 2px;
    top: 2px;
}

.processIcon svg path {
    fill: iconColor;
}

.processTree div[selected="true"] .processIcon svg path {
    fill: activeIconColor;
}

.processNavigation {
    outline: none;
}

.processOutputPanel {
    -moz-user-select: text;
    -webkit-user-select: auto;
    user-select: text;
    background-color: outputBackgroundColor;
}

.processesPanelStopButtonForProcess {
    position: relative;
    float: right;
    background-color: editorTabIconColor;
    opacity: 0.3;
    margin: 4px 5px 0 5px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    box-sizing: border-box;
    cursor: pointer;
    top: 0px;
}

.processesPanelStopButtonForProcess:hover {
    opacity: 0.5;
}

.processesPanelCloseButtonForProcess {
    float: right;
}

.processesPanelCloseButtonForProcess svg {
    position: relative;
    cursor: pointer;
    opacity: 0.5;
    padding-top: 6px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 9px;
    float: right;
    fill: editorTabIconColor;
}

.processesPanelCloseButtonForProcess svg g,
.processesPanelCloseButtonForProcess svg path {
    fill: editorTabIconColor;
}

.processTree div[selected="true"] .processesPanelCloseButtonForProcess svg,
.processesPanelCloseButtonForProcess:HOVER svg {
    opacity: 1;
}

.hideStopButton .processesPanelStopButtonForProcess {
    display: none;
}

.consolesActiveToolButton[turnOn] {
    opacity: 1;
    background-color: getTooltipBackgroundColor;
}

.consolesActiveToolButton[turnOn] :first-child {
    color: getPrimaryHighlightColor;
}
